package com.finace.money.common;


import com.finace.money.common.util.DeviceUtils;
import com.finace.money.common.util.UIUtil;

/**
 * Created by ZHP on 2017/6/24.
 */

public class Constant {


    public static final String BASE_URL = "http://47.96.178.223:8088/";//测试服务器
//    public static final String BASE_URL = "https://api.tqzwb.com/";//正式服务器
    public static final String BASE_SOCKET_URL = "ws://120.55.72.252:8888";//长连

    //接口
    public static final String bannerInterface = getAbsoluteUrl("/api/Index/bannerList");//banner接口
    public static final String sendCodeInterface = getAbsoluteUrl("/api/Code/sendCode");//发送验证码接口
    public static final String checkPhoneInterface = getAbsoluteUrl("/api/user/registerCheck");//检查手机号接口
    public static final String imageInterface = getAbsoluteUrl("/api/Index/getVerifyLink");//检查手机号接口
    public static final String dealRecordListInterface = getAbsoluteUrl("/api/Strategy/lists");//交易攻略接口
    public static final String newsInterface = getAbsoluteUrl("/api/Industry/lists");//行业咨询接口
    public static final String analyseInterface = getAbsoluteUrl("/api/Market/lists");//行情分析接口
    public static final String addressInterface = getAbsoluteUrl("/api/Area/index");//省市接口
    public static final String registerInterface = getAbsoluteUrl("/api/user/register");//注册接口


    public static String getAbsoluteUrl(String relativeUrl) {
        return String.format("%s%s",BASE_URL,relativeUrl);
    }

    public static final String main = "page";
    public static final String login = "login";
    public static final String remeber_account = "remeber_account";
    public static final String account = "account";
    public static final String app_sign = "app_sign";
    public static final String apiKey = "9poy8yfpr4fcde19d0k27ywpyeps5xtr";
    public static final String secretKey = "4lvksfbfaeybwllodr7mfuuc8sdfhtqk";
    public static final String uid = "uid";
    public static final String token = "token";
    public static final String session_id = "session_id";
    public static final String id = "id";
    public static final String app_type = "android";
    public static final String web = "url";
    public static final String web_title = "web_title";
    public static final String device_token = DeviceUtils.getAndroidID(UIUtil.getContext());
    public static final String email = "email";
    public static final String firstIn = "first";
    public static final String remeber = "remeber";

    public static final String CHOOSE_ALL = "choose_all";
    public static final String ACCOUNT_INFO = "account_info";
    public static final String LOGIN_HEART = "heart";
    public static final String ADDRESS_PROVINCE = "province";
    public static final String ADDRESS_CITY = "city";
    public static final String ADDRESS_AREA = "area";
    public static final String BANK_CARD_INFO = "bank";
    public static final String BANK_LIST = "bank_list";
    public static final String MONEY_RECORD = "money_record";
    public static final String MONEY_IN = "money_in";
    public static final String MONEY_OUT = "money_out";

    public static final int page_deal_record = 0;
    public static final int page_news = 1;
    public static final int page_analyse = 2;



    public static final int requestCode = 1;
    public static final int resultCode = 1;

    public static final int BaseScreenWidth = 1080;
    public static final int BaseScreenHeight = 1920;

}